
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8"/>
    <title>IconFont</title>
    <link rel="stylesheet" href="demo.css">
    <script src="iconfont.js"></script>

    <style type="text/css">
        .icon {
          /* 通过设置 font-size 来改变图标大小 */
          width: 1em; height: 1em;
          /* 图标和文字相邻时，垂直对齐 */
          vertical-align: -0.15em;
          /* 通过设置 color 来改变 SVG 的颜色/fill */
          fill: currentColor;
          /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
             normalize.css 中也包含这行 */
          overflow: hidden;
        }

    </style>
</head>
<body>
    <div class="main markdown">
        <h1>IconFont 图标</h1>
        <ul class="icon_lists clear">
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-locationfill"></use>
                    </svg>
                    <div class="name">location_fill</div>
                    <div class="fontclass">#el-icon-my-locationfill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-camerafill"></use>
                    </svg>
                    <div class="name">camera_fill</div>
                    <div class="fontclass">#el-icon-my-camerafill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-commentfill"></use>
                    </svg>
                    <div class="name">comment_fill</div>
                    <div class="fontclass">#el-icon-my-commentfill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-likefill"></use>
                    </svg>
                    <div class="name">like_fill</div>
                    <div class="fontclass">#el-icon-my-likefill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-questionfill"></use>
                    </svg>
                    <div class="name">question_fill</div>
                    <div class="fontclass">#el-icon-my-questionfill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-shopfill"></use>
                    </svg>
                    <div class="name">shop_fill</div>
                    <div class="fontclass">#el-icon-my-shopfill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-cartfill"></use>
                    </svg>
                    <div class="name">cart_fill</div>
                    <div class="fontclass">#el-icon-my-cartfill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-discoverfill"></use>
                    </svg>
                    <div class="name">discover_fill</div>
                    <div class="fontclass">#el-icon-my-discoverfill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-homefill"></use>
                    </svg>
                    <div class="name">home_fill</div>
                    <div class="fontclass">#el-icon-my-homefill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-selectionfill"></use>
                    </svg>
                    <div class="name">selection_fill</div>
                    <div class="fontclass">#el-icon-my-selectionfill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-appreciatefill"></use>
                    </svg>
                    <div class="name">appreciate_fill</div>
                    <div class="fontclass">#el-icon-my-appreciatefill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-rechargefill"></use>
                    </svg>
                    <div class="name">recharge_fill</div>
                    <div class="fontclass">#el-icon-my-rechargefill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-voicefill"></use>
                    </svg>
                    <div class="name">voice_fill</div>
                    <div class="fontclass">#el-icon-my-voicefill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-wefill"></use>
                    </svg>
                    <div class="name">we_fill</div>
                    <div class="fontclass">#el-icon-my-wefill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-lightfill"></use>
                    </svg>
                    <div class="name">light_fill</div>
                    <div class="fontclass">#el-icon-my-lightfill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-mobilefill"></use>
                    </svg>
                    <div class="name">mobile_fill</div>
                    <div class="fontclass">#el-icon-my-mobilefill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-countdownfill"></use>
                    </svg>
                    <div class="name">countdown_fill</div>
                    <div class="fontclass">#el-icon-my-countdownfill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-noticefill"></use>
                    </svg>
                    <div class="name">notice_fill</div>
                    <div class="fontclass">#el-icon-my-noticefill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-upstagefill"></use>
                    </svg>
                    <div class="name">upstage_fill</div>
                    <div class="fontclass">#el-icon-my-upstagefill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-creativefill"></use>
                    </svg>
                    <div class="name">creative_fill</div>
                    <div class="fontclass">#el-icon-my-creativefill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-newfill"></use>
                    </svg>
                    <div class="name">new_fill</div>
                    <div class="fontclass">#el-icon-my-newfill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-friendfill"></use>
                    </svg>
                    <div class="name">friend_fill</div>
                    <div class="fontclass">#el-icon-my-friendfill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-paintfill"></use>
                    </svg>
                    <div class="name">paint_fill</div>
                    <div class="fontclass">#el-icon-my-paintfill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-markfill"></use>
                    </svg>
                    <div class="name">mark_fill</div>
                    <div class="fontclass">#el-icon-my-markfill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-presentfill"></use>
                    </svg>
                    <div class="name">present_fill</div>
                    <div class="fontclass">#el-icon-my-presentfill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-peoplefill"></use>
                    </svg>
                    <div class="name">people_fill</div>
                    <div class="fontclass">#el-icon-my-peoplefill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-servicefill"></use>
                    </svg>
                    <div class="name">service_fill</div>
                    <div class="fontclass">#el-icon-my-servicefill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-repairfill"></use>
                    </svg>
                    <div class="name">repair_fill</div>
                    <div class="fontclass">#el-icon-my-repairfill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-commandfill"></use>
                    </svg>
                    <div class="name">command_fill</div>
                    <div class="fontclass">#el-icon-my-commandfill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-communityfill"></use>
                    </svg>
                    <div class="name">community_fill</div>
                    <div class="fontclass">#el-icon-my-communityfill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-tagfill"></use>
                    </svg>
                    <div class="name">tag_fill</div>
                    <div class="fontclass">#el-icon-my-tagfill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-hotfill"></use>
                    </svg>
                    <div class="name">hot_fill</div>
                    <div class="fontclass">#el-icon-my-hotfill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-crownfill"></use>
                    </svg>
                    <div class="name">crown_fill</div>
                    <div class="fontclass">#el-icon-my-crownfill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-goodsfill"></use>
                    </svg>
                    <div class="name">goods_fill</div>
                    <div class="fontclass">#el-icon-my-goodsfill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-messagefill"></use>
                    </svg>
                    <div class="name">message_fill</div>
                    <div class="fontclass">#el-icon-my-messagefill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-profilefill"></use>
                    </svg>
                    <div class="name">profile_fill</div>
                    <div class="fontclass">#el-icon-my-profilefill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-sponsorfill"></use>
                    </svg>
                    <div class="name">sponsor_fill</div>
                    <div class="fontclass">#el-icon-my-sponsorfill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-emojifill"></use>
                    </svg>
                    <div class="name">emoji_fill</div>
                    <div class="fontclass">#el-icon-my-emojifill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-emojiflashfill"></use>
                    </svg>
                    <div class="name">emoji_flash_fill</div>
                    <div class="fontclass">#el-icon-my-emojiflashfill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-logout"></use>
                    </svg>
                    <div class="name">logout</div>
                    <div class="fontclass">#el-icon-my-logout</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-musicfill"></use>
                    </svg>
                    <div class="name">music_fill</div>
                    <div class="fontclass">#el-icon-my-musicfill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-recordfill"></use>
                    </svg>
                    <div class="name">record_fill</div>
                    <div class="fontclass">#el-icon-my-recordfill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-formfill"></use>
                    </svg>
                    <div class="name">form_fill</div>
                    <div class="fontclass">#el-icon-my-formfill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-circlefill"></use>
                    </svg>
                    <div class="name">circle_fill</div>
                    <div class="fontclass">#el-icon-my-circlefill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-goodsnewfill"></use>
                    </svg>
                    <div class="name">goods_new_fill</div>
                    <div class="fontclass">#el-icon-my-goodsnewfill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-medalfill"></use>
                    </svg>
                    <div class="name">medal_fill</div>
                    <div class="fontclass">#el-icon-my-medalfill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-newsfill"></use>
                    </svg>
                    <div class="name">news_fill</div>
                    <div class="fontclass">#el-icon-my-newsfill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-newshotfill"></use>
                    </svg>
                    <div class="name">news_hot_fill</div>
                    <div class="fontclass">#el-icon-my-newshotfill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-askfill"></use>
                    </svg>
                    <div class="name">ask_fill</div>
                    <div class="fontclass">#el-icon-my-askfill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-skinfill"></use>
                    </svg>
                    <div class="name">skin_fill</div>
                    <div class="fontclass">#el-icon-my-skinfill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-moneybagfill"></use>
                    </svg>
                    <div class="name">money_bag_fill</div>
                    <div class="fontclass">#el-icon-my-moneybagfill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-redpacket_fill"></use>
                    </svg>
                    <div class="name">redpacket_fill</div>
                    <div class="fontclass">#el-icon-my-redpacket_fill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-evaluate_fill"></use>
                    </svg>
                    <div class="name">evaluate_fill</div>
                    <div class="fontclass">#el-icon-my-evaluate_fill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-group_fill"></use>
                    </svg>
                    <div class="name">group_fill</div>
                    <div class="fontclass">#el-icon-my-group_fill</div>
                </li>
            
                <li>
                    <svg class="icon" aria-hidden="true">
                        <use xlink:href="#el-icon-my-lock_fill"></use>
                    </svg>
                    <div class="name">lock_fill</div>
                    <div class="fontclass">#el-icon-my-lock_fill</div>
                </li>
            
        </ul>


        <h2 id="symbol-">symbol引用</h2>
        <hr>

        <p>这是一种全新的使用方式，应该说这才是未来的主流，也是平台目前推荐的用法。相关介绍可以参考这篇<a href="">文章</a>
        这种用法其实是做了一个svg的集合，与另外两种相比具有如下特点：</p>
        <ul>
          <li>支持多色图标了，不再受单色限制。</li>
          <li>通过一些技巧，支持像字体那样，通过<code>font-size</code>,<code>color</code>来调整样式。</li>
          <li>兼容性较差，支持 ie9+,及现代浏览器。</li>
          <li>浏览器渲染svg的性能一般，还不如png。</li>
        </ul>
        <p>使用步骤如下：</p>
        <h3 id="-symbol-">第一步：引入项目下面生成的symbol代码：</h3>
        <pre><code class="lang-js hljs javascript"><span class="hljs-comment">&lt;script src="./iconfont.js"&gt;&lt;/script&gt;</span></code></pre>
        <h3 id="-css-">第二步：加入通用css代码（引入一次就行）：</h3>
        <pre><code class="lang-js hljs javascript">&lt;style type=<span class="hljs-string">"text/css"</span>&gt;
.icon {
   width: <span class="hljs-number">1</span>em; height: <span class="hljs-number">1</span>em;
   vertical-align: <span class="hljs-number">-0.15</span>em;
   fill: currentColor;
   overflow: hidden;
}
&lt;<span class="hljs-regexp">/style&gt;</span></code></pre>
        <h3 id="-">第三步：挑选相应图标并获取类名，应用于页面：</h3>
        <pre><code class="lang-js hljs javascript">&lt;svg <span class="hljs-class"><span class="hljs-keyword">class</span></span>=<span class="hljs-string">"icon"</span> aria-hidden=<span class="hljs-string">"true"</span>&gt;<span class="xml"><span class="hljs-tag">
  &lt;<span class="hljs-name">use</span> <span class="hljs-attr">xlink:href</span>=<span class="hljs-string">"#el-icon-my-xxx"</span>&gt;</span><span class="hljs-tag">&lt;/<span class="hljs-name">use</span>&gt;</span>
</span>&lt;<span class="hljs-regexp">/svg&gt;
        </span></code></pre>
    </div>
</body>
</html>
